package com.example.businesscalcproject;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.webkit.WebView;

public class Tabela_Amortizacao_Constante extends Activity {
	
	private String message;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		 this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		message = getIntent().getExtras().getString("html");
		WebView webview = new WebView(this);
		webview.setBackgroundResource(R.drawable.backgroud);
		setContentView(webview);
	 	String yourHtml = "<html><body><table  border='1'><tr>" +
				"<td width='75' nowrap='nowrap'>" +
				"<p style='text-align: center'><b>Meses</b></p>" +
				"</td>" +
				"<td width='164' nowrap='nowrap'>" +
				"<p style='text-align: center'><b>Amortizacao</b></p>" +
				" </td>" +
				"<td width='180' nowrap='nowrap'>" +
				" <p style='text-align: center'><b>Prestacao</b></p>" +
				"</td>" +
				"<td width='153' nowrap='nowrap'>" +
				"<p style='text-align: center'><b>Saldo devedor</b></p>" +
				" </td>" +
				"</tr>" +
				message +
				"</table>" +
				"</body></html>";
		    webview.loadData(yourHtml , "text/html", "utf-8");
	}

}
